package com.uinfor.controller;

import com.uinfor.service.IStorageService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @descripttion:
 * @Author: WZH
 * @Date :2021/2/5  16:43
 **/
@RestController
public class StorageController {
    @Resource
    private IStorageService iStorageService;
    @PostMapping("/storage/decrease")
    public void decrease(Long productId,Integer count){
        System.out.println(productId);
        System.out.println(count);
        iStorageService.decrease(productId,count);
    }
}
